import asyncio
import aiohttp


async def http_test():
    async with aiohttp.ClientSession() as session:
        async with session.get('http://www.cip.cc/') as resp:
            print(await resp.read())


if __name__ == '__main__':
    loop = asyncio.get_event_loop()
    loop.run_until_complete(http_test())
    loop.close()
